package qtype

type QNumber struct {
	QBase
	value interface{}
}

func NewQNumber() *QNumber {
	item := &QNumber{
		QBase: QBase{
			Type: TypeNumber,
		},
	}
	return item
}

func NewQInt(i int) *QNumber {
	qm := NewQNumber()
	qm.value = i
	return qm
}

func NewQLong(i int64) *QNumber {
	qm := NewQNumber()
	qm.value = i
	return qm
}

func NewQDecimal(i float32) *QNumber {
	qm := NewQNumber()
	qm.value = i
	return qm
}
